package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 人员培训记录对象 erp_user_train_info
 * @author wutao
 * @date 2024-05-31
 */
@TableName ("erp_user_train_info")
@ApiModel (value = "erp_user_train_info对象", description = "人员培训记录")
@Data
public class UserTrainEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 公司Id,关联部门表level为1
     */
    @ApiModelProperty ("公司Id,关联部门表level为1")
    @TableField ("dept_id")
    @Excel (name = "公司Id,关联部门表level为1")
    private String deptId;

    /**
     * 培训主题
     */
    @ApiModelProperty ("培训主题")
    @TableField ("train_theme")
    @Excel (name = "培训主题")
    private String trainTheme;

    /**
     * 培训地点
     */
    @ApiModelProperty ("培训地点")
    @TableField ("train_address")
    @Excel (name = "培训地点")
    private String trainAddress;

    /**
     * 培训人Id
     */
    @ApiModelProperty ("培训人Id")
    @TableField ("train_user_id")
    @Excel (name = "培训人Id")
    private String trainUserId;

    /**
     * 培训内容简述
     */
    @ApiModelProperty ("培训内容简述")
    @TableField ("train_content")
    @Excel (name = "培训内容简述")
    private String trainContent;

    /**
     * 是否正常开始;1:是;2:否
     */
    @ApiModelProperty ("是否正常开始;1:是;2:否")
    @TableField ("is_normal")
    @Excel (name = "是否正常开始;1:是;2:否")
    private Integer isNormal;

    /**
     * 缺勤人员,文本填写姓名
     */
    @ApiModelProperty ("缺勤人员,文本填写姓名")
    @TableField ("absence_user")
    @Excel (name = "缺勤人员,文本填写姓名")
    private String absenceUser;

    /**
     * 备注
     */
    @ApiModelProperty ("备注")
    @TableField ("remarks")
    @Excel (name = "备注")
    private String remarks;

    /**
     * 是否在用
     */
    @ApiModelProperty ("是否在用")
    @TableField ("is_used")
    @Excel (name = "是否在用")
    private Integer isUsed;

    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "deptId", getDeptId () )
                .append ( "trainTheme", getTrainTheme () )
                .append ( "beginTime", getBeginTime () )
                .append ( "endTime", getEndTime () )
                .append ( "trainAddress", getTrainAddress () )
                .append ( "trainUserId", getTrainUserId () )
                .append ( "trainContent", getTrainContent () )
                .append ( "isNormal", getIsNormal () )
                .append ( "absenceUser", getAbsenceUser () )
                .append ( "remarks", getRemarks () )
                .append ( "createBy", getCreateBy () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
